{% extends './include/base.html' %}
{% block pages %}
    <div class="register">
        <form class="regsub" action="/app02/register/" method="post" novalidate>
        <!--<form action="{% url 'register' %}"  method="post" novalidate>-->
            {% csrf_token %}
            <p>账号{{ obj.userName }}</p>
            <span>{{ obj.errors.userName.0 }} </span>
            <p>邮箱{{ obj.email }}</p>
            <span>{{ obj.errors.mail.0 }} </span>
            <p>密码{{  obj.passWord }}</p>
            <span>{{ obj.errors.passWord.0 }}</span>
            <p>性别{{  obj.sex }}</p>
            <span>{{ obj.errors.sex.0 }}</span>
            <p>城市{{  obj.city }}</p>
            <span>{{ obj.errors.city.0 }}</span>
            <p>爱好{{  obj.hobby }}</p>
            <span>{{ obj.errors.hobby.0 }}</span>
            <p><input type="submit" value="提交" class="sub"></p>
        </form>
    </div>

{% endblock %}